// pages/tab/tab.js
Page({
   data: {
      tabs:['首页','电影','音乐'],
      currentIndex:0
   },
   handleClick(e){
      var {index} = e.currentTarget.dataset;
      console.log(index)
      this.setData({
         currentIndex:index
      })
   }
})